package com.bajie.bjlisten.entity.response;

import com.alibaba.fastjson.JSONObject;
import com.bajie.bjlisten.entity.BjEBook;
import com.bajie.bjlisten.entity.BjEbook_ChaptersDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * Package: com.bajie.framework.domain.ebooks.response
 * <p>
 * Description： TODO
 * <p>
 * Author: wangzhen
 * <p>
 * Date: Created in 2019/5/6 3:50 PM
 */
@Data
@ToString
public class EBookResult extends ResponseResult {
    @ApiModelProperty(value = "小说信息", example = "true", required = true)
   // List<BjEBook> bjEBook;
  //  @ApiModelProperty(value = "章节信息", example = "true", required = true)
   // List<Object> bjChapters;
    List<Object> list;
    JSONObject jsonObject;
    BjEbook_ChaptersDto bjEbook_chaptersDto;
    public EBookResult(ResultCode resultCode,List<Object> list) {
        super(resultCode);
        this.list = list;
    }

    public EBookResult(ResultCode resultCode,BjEbook_ChaptersDto bjEbook_chaptersDto) {
        super(resultCode);
        this.bjEbook_chaptersDto = bjEbook_chaptersDto;
    }

    public EBookResult(ResultCode resultCode,JSONObject jsonObject) {
        super(resultCode);
        this.jsonObject = jsonObject;
    }

    //    BjChapters bjChapters;
   /* public EBookResult(ResultCode resultCode, List<BjEBook> bjEBook) {
        super(resultCode);
        this.bjEBook = bjEBook;
    }*/
    public EBookResult(ResultCode resultCode) {
        super(resultCode);
    }

  /*  public EBookResult(CommonCode commonCode, List<Object> bjChapters) {
        super(commonCode);
        this.bjChapters = bjChapters;
    }*/

//    @ApiModelProperty(value = "小说信息", example = "true", required = true)
//    List<BjChapters> bjChapters;
//    public EBookResult(ResultCode resultCode, List<BjChapters> bjChapters) {
//        super(resultCode);
//        this.bjChapters = bjChapters;
//    }

}
